home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 928 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news.production.compuserve.com!news
  2. From: Steve Harris <100016.2166@CompuServe.COM>
  3. Newsgroups: comp.lang.c++,comp.lang.fortran
  4. Subject: Calling Fortran in C++
  5. Date: 8 Jan 1996 14:03:33 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4cr87l$794$1@mhafc.production.compuserve.com>
  8.  
  9. Hello,
  10. Can anyone  provide me with a 'simple' example, with source code 
  11. and an 'idiots' step guide, on how to call some FORTRAN code from 
  12. MS VISUAL C++. I have read through the topic of mixed language 
  13. programming in the VISUAL C++ manuals and tried writing the 
  14. examples in the text but I can't seem to get them to work. When I 
  15. type the following command to link the object files of a FORTRAN 
  16. and C++ program:
  17.  
  18.     link small test,,,,
  19.  
  20. I get the following error,
  21.  
  22.     test.obj : fatal error L1101 : invalid object module
  23.     Object file offset : 1 Record type : 4c
  24.  
  25. Even an example of a few lines of code showing how to define and 
  26. call FORTRAN code from C++ would be greatly appreciated, as would 
  27. the steps required to compile and link the two sets of code. The 
  28. more I look at the examples in the book the darker the world 
  29. appears to become! 
  30. Thanks for your time, it's greatly appreciated.
  31. Steve Harris
  32. Thanks for your time, it's greatly appreciated.
  33. Steve Harris
  34.